package com.dangdi.show.controller;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    //首页
    @RequestMapping("/")
    public String index() {
        Subject subject = SecurityUtils.getSubject();
        if (subject.isAuthenticated()) {
            return "manager/Main";
        }
        return "index";
    }

    //注册
    @RequestMapping("zhuce")
    public String zhuce() {
        return "zhuce";
    }

    //关于我们
    @RequestMapping("guanyuwomen")
    public String guanyuwomen() {
        return "guanyuwomen";
    }

    //加入我们
    @RequestMapping("jiaruwomen")
    public String jiaruwomen() {
        return "jiaruwomen";
    }
}
